from django.db import models

# Create your models here.
class Register(models.Model):
    username = models.CharField(max_length=20, unique=True)
    onepassword = models.CharField(max_length=1000,default='defaultpassword')
    twopassword = models.CharField(max_length=20,default='defaultpassword')
    email = models.EmailField(unique=True)
    phone = models.CharField(max_length=20, unique=True)

    def __str__(self):
        return self.username

class Poem(models.Model):
    title = models.CharField(max_length=100)
    content = models.TextField(max_length=5000)

    def __str__(self):
        return self.title